package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@ApiModel(description = "赛事预告表")
@TableName("event_announcements")
public class EventAnnouncements extends BaseEntity {
    @ApiModelProperty(value = "赛事名称")
    @TableField(value = "event_name")
    private String eventName;

    @ApiModelProperty(value = "赛事类型")
    @TableField(value = "event_type")
    private String eventType;


    @ApiModelProperty(value = "赛事描述")
    @TableField(value = "event_description")
    private String eventDescription;

    @ApiModelProperty(value = "赛事开始时间")
    @TableField(value = "event_start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
        private LocalDate eventStartTime;

    @ApiModelProperty(value = "赛事结束时间")
    @TableField(value = "event_end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate eventEndTime;


    @ApiModelProperty(value = "赛事链接")
    @TableField(value = "event_link")
    private String eventLink;

}
